package cn.tedu.boot071.mapper;

import cn.tedu.boot071.entity.Image;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImageMapper {
    @Insert("INSERT INTO image VALUES(NULL,#{title},#{urls},#{created})")
    void insert(Image image);

    @Select("SELECT * FROM image")
    List<Image> select();

}
